FSM function name:
Dispatcher
Parameters:
Module header:
This is a sample of hierarchical generation
to be compuled with VS6.0
Rolf'2002
Global initialization:
// Header files
#include <conio.h>
#include <stdio.h>
//Timer
unsigned long tmr;
#define TIME_MAX 1000000
#define StepTimer() tmr++
#define TimerEnd() (tmr >= TIME_MAX)
#define ResetTimer() tmr = 0
Function header:
This is a basic dispatcher
Global actions (before FSM analysis):
Global actions (after FSM analysis):
Global final (out of FSM function):
void main(void)
{
while(1){
Dispatcher();
}
}
Links:
SuperEstado.htm